package com.neuedu.boot.mybatis.po;

import java.io.Serializable;
import java.util.Date;

/**
 * 检查或者检查结果
 * @TableName upload
 */
public class Upload implements Serializable {
    /**
     * 主键
     */
    private Integer uploadId;

    /**
     * 上传文件的路径
     */
    private String path;

    /**
     * 原始文件名
     */
    private String originName;

    /**
     * 上传文件的扩展名
     */
    private String ext;

    /**
     * 上传时间
     */
    private Date upTime;

    /**
     * 上传的人员
     */
    private String upUser;

    /**
     * check  inspect
     */
    private String upType;

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    public Integer getUploadId() {
        return uploadId;
    }

    /**
     * 主键
     */
    public void setUploadId(Integer uploadId) {
        this.uploadId = uploadId;
    }

    /**
     * 上传文件的路径
     */
    public String getPath() {
        return path;
    }

    /**
     * 上传文件的路径
     */
    public void setPath(String path) {
        this.path = path;
    }

    /**
     * 原始文件名
     */
    public String getOriginName() {
        return originName;
    }

    /**
     * 原始文件名
     */
    public void setOriginName(String originName) {
        this.originName = originName;
    }

    /**
     * 上传文件的扩展名
     */
    public String getExt() {
        return ext;
    }

    /**
     * 上传文件的扩展名
     */
    public void setExt(String ext) {
        this.ext = ext;
    }

    /**
     * 上传时间
     */
    public Date getUpTime() {
        return upTime;
    }

    /**
     * 上传时间
     */
    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }

    /**
     * 上传的人员
     */
    public String getUpUser() {
        return upUser;
    }

    /**
     * 上传的人员
     */
    public void setUpUser(String upUser) {
        this.upUser = upUser;
    }

    /**
     * check  inspect
     */
    public String getUpType() {
        return upType;
    }

    /**
     * check  inspect
     */
    public void setUpType(String upType) {
        this.upType = upType;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Upload other = (Upload) that;
        return (this.getUploadId() == null ? other.getUploadId() == null : this.getUploadId().equals(other.getUploadId()))
            && (this.getPath() == null ? other.getPath() == null : this.getPath().equals(other.getPath()))
            && (this.getOriginName() == null ? other.getOriginName() == null : this.getOriginName().equals(other.getOriginName()))
            && (this.getExt() == null ? other.getExt() == null : this.getExt().equals(other.getExt()))
            && (this.getUpTime() == null ? other.getUpTime() == null : this.getUpTime().equals(other.getUpTime()))
            && (this.getUpUser() == null ? other.getUpUser() == null : this.getUpUser().equals(other.getUpUser()))
            && (this.getUpType() == null ? other.getUpType() == null : this.getUpType().equals(other.getUpType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getUploadId() == null) ? 0 : getUploadId().hashCode());
        result = prime * result + ((getPath() == null) ? 0 : getPath().hashCode());
        result = prime * result + ((getOriginName() == null) ? 0 : getOriginName().hashCode());
        result = prime * result + ((getExt() == null) ? 0 : getExt().hashCode());
        result = prime * result + ((getUpTime() == null) ? 0 : getUpTime().hashCode());
        result = prime * result + ((getUpUser() == null) ? 0 : getUpUser().hashCode());
        result = prime * result + ((getUpType() == null) ? 0 : getUpType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", uploadId=").append(uploadId);
        sb.append(", path=").append(path);
        sb.append(", originName=").append(originName);
        sb.append(", ext=").append(ext);
        sb.append(", upTime=").append(upTime);
        sb.append(", upUser=").append(upUser);
        sb.append(", upType=").append(upType);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}